<table cellpadding="3" cellspacing="1" class="table table-bordered table-hover" id="list-table">
    <thead>
    <tr>
        <th>姓名</th>
        <th>金额</th>
        <th>账户</th>
        <th>提现日期</th>
        <th>状态</th>
        <th>备注</th>
        <th>操作</th>
    </tr>
    </thead>
<#if (voucherBillList?size>0) >
    <#list  voucherBillList as voucherBill>
        <tbody>
        <tr>
            <th align="center" valign="top" nowrap="nowrap">
                <#if (voucherBill.userName)??>
                    <a href="${basePath}/stuff/ajaxQueryStuffDetail.action?stuffID=${(voucherBill.userid)}">${voucherBill.userName}</a>
               </#if>
            </th>

            <th align="center" valign="top" nowrap="nowrap">
                <#if (voucherBill.billTotal)??>
                    ${voucherBill.billTotal}
                </#if>
            </th>

            <th align="center" valign="top" nowrap="nowrap">
                <#if (voucherBill.accountBankName)??>
                    ${voucherBill.accountBankName}
                </#if>
            </th>

            <th align="center" valign="top" nowrap="nowrap">
                <#if (voucherBill.createDate)??>
                    ${(voucherBill.createDate)?string("yyyy-MM-dd hh:mm:ss")}
                </#if>
            </th>

            <th align="center" valign="top" nowrap="nowrap">
                <#if (voucherBill.runFlag)??>
                    <#if (voucherBill.runFlag)==0>
                    草稿
                    <#elseif (voucherBill.runFlag)==8>
                    已拒绝
                    <#elseif (voucherBill.runFlag)==9>
                    已完成
                    </#if>
                <#else >
                    未知
                </#if>
            </th>

            <th align="center" valign="top" nowrap="nowrap">
                <#if (voucherBill.comment)??>
                    ${voucherBill.comment}
                <#else >
                    无
                </#if>
            </th>

            <th align="center" valign="top" nowrap="nowrap">
                <a href="javascript:void(0)" onclick="agreeVoucherBill(this)" user-id="${voucherBill.userid}">
                    <button type="button" class="btn btn-primary">确认</button>
                </a>

                <a href="javascript:void(0)" onclick="refusedVoucherBill(this)" user-id="${voucherBill.userid}">
                    <button type="button" class="btn btn-danger">拒绝</button>
                </a>

            </th>
        </tr>
        </tbody>
    </#list>
</#if>
</table>

<script type="text/javascript">
    listTable.currentPage =${(page.currentPage)?c};
    listTable.pageCount =${(page.totalPage)?c};
    listTable.recordCount =${(page.allRow)?c};
</script>
<!--分页-->
<table id="page-table" cellspacing="0">
    <tr>
        <td align="right" nowrap="true">
            <div id="turn-page">
                共<span id="totalRecords">${page.allRow} </span>条记录&nbsp;
                共<span id="totalPages">${page.totalPage}</span> 页&nbsp;
                当前第<span id="pageCurrent">${page.currentPage}</span>页&nbsp;

                每页显示记录条数 <input type='text' size='3' id='pageSize' value="${page.pageSize}"
                                onkeypress="return listTable.changePageSize(event)"/>
                <!--查询动作-->
                <input type='hidden' size='3' id='action' value="ajaxQueryStuff.action"/>


                <span id="page-link">
                    <a href="javascript:listTable.gotoPageFirst()">第一页</a>
                    <a href="javascript:listTable.gotoPagePrev()">前一页</a>
                    <a href="javascript:listTable.gotoPageNext()">下一页</a>
                    <a href="javascript:listTable.gotoPageLast()">最后一页</a>
                </span>
            </div>
        </td>

    </tr>
</table>